import Vue from 'vue'
import Router from 'vue-router'
import List from '@/views/spread/list'
import Crowdfunding from '@/views/spread/Crowdfunding'
import Detail from '@/views/user/detail'
import Acount from '@/views/user/acount'
import Payment from '@/views/user/payment'
import Sign from '@/views/user/sign'
import Login from '@/views/user/login'
import Null from '@/views/user/null'
import Activity from '@/views/user/activity'
import Active from '@/views/user/active'
import signDetail from '@/views/sign/signDetail'
import Code from '@/views/code'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/activity/sponsor',
  routes: [
    {
      path: '/',
      name: 'List',
      component: List
    },
    {
      path: '/acount',
      name: 'Acount',
      component: Acount
    },
    {
      path: '/crowdfunding',
      name: 'Crowdfunding',
      component: Crowdfunding
    },
    {
      path: '/payment',
      name: 'Payment',
      component: Payment
    },
    {
      path: '/sign',
      name: 'Sign',
      component: Sign
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/null',
      name: 'NUll',
      component: Null
    },
    {
      path: '/activity',
      name: 'Activity',
      component: Activity
    },
    {
      path: '/active',
      name: 'Active',
      component: Active
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/signDetail',
      name: 'signDetail',
      component: signDetail
    },
    {
      path: '/code',
      name: 'code',
      component: Code
    }
  ]
})
